package com.itqf.client;

import com.itqf.entity.Book;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/12/25
 * @Time: 下午3:53
 */
//feign
@FeignClient(serviceId = "eureka-sidecar-proxy")
public interface SideCarClient {

    @RequestMapping("/findBook")//http://localhost:9001/findBook
    public List<Book> findAll();

    @RequestMapping("/find")//http://localhost:9001/find
    public Book findOne();



}
